package com.sens.tables;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Table;
import com.sens.common.StringUtil;
import com.sens.database.LiteOrmDBUtil;

@Table("MybankConfig")
public class MybankConfig extends LiteOrmDBUtil.BaseTable {
    @Column("channel_number")
    private String channelNumber;
    @Column("query_time_interval")
    private String queryTimeInterval = "5";
    @Column("start")
    private boolean start;
    @Column("collection_able")
    private boolean collectionAble;

    public String getChannelNumber() {
        return channelNumber;
    }

    public void setChannelNumber(String channelNumber) {
        this.channelNumber = channelNumber;
    }

    public String getQueryTimeInterval() {
        return queryTimeInterval;
    }

    public void setQueryTimeInterval(String queryTimeInterval) {
        if (StringUtil.isEmpty(queryTimeInterval)) queryTimeInterval = "5";
        this.queryTimeInterval = queryTimeInterval;
    }

    public boolean isStart() {
        return start;
    }

    public void setStart(boolean start) {
        this.start = start;
    }

    public boolean isCollectionAble() {
        return collectionAble;
    }

    public void setCollectionAble(boolean collectionAble) {
        this.collectionAble = collectionAble;
    }
}